//
//  ORAnecdoteViewController.m
//  NewsWith
//
//  Created by rimi on 2016/12/13.
//  Copyright © 2016年 dongfumei. All rights reserved.
//

#import "ORAnecdoteViewController.h"

@interface ORAnecdoteViewController ()

@property (nonatomic, strong) UIWebView *webView;

@end

@implementation ORAnecdoteViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:self.webView];
    NSURL *url = [NSURL URLWithString:_url];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [self.webView loadRequest:request];

}

-(UIWebView *)webView{
    if (!_webView) {
        _webView = [[UIWebView alloc]initWithFrame:AAdaptionRect(0, -45/AAdaptationWidth(), kBaseWidth, kBaseHeight)];
        _webView.backgroundColor = [UIColor whiteColor];
        
    }
    return _webView;
}

@end
